package cn.cjxy.springmvcdemo2.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 *  测试mvc环境有无问题
 * @author huangjie
 * @date 2025/10/13
 */
@Controller
public class HelloController {
    @ResponseBody
    @RequestMapping("/hello")
    public String hello(){return "hello";
    }


    @ResponseBody
    @RequestMapping("/register")
    public String register(String username,String password){
        System.out.println("测试拦截器----");
        return username+password;
    }
}
